const { src, dest } = require('gulp');
const sass = require('gulp-sass')(require('sass'));
const rename = require('gulp-rename');
const babel = require('gulp-babel');
const style = () => {
    return src('src/assets/styles/*.scss', { base: 'src' })
        .pipe(sass({ outputStyle: 'compressed' }))
        .pipe(rename({ suffix: '.min' }))
        .pipe(dest('dist'));
};

const script = () => {
    return src('src/assets/scripts/*.js', { base: 'src' }).pipe(babel()).pipei(dest('dist'));
};
module.exports = {
    style,
    script
};
